package com.imooc.study.imoocstudy.tkmybatis.entity;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;

// 去掉table注解也可以映射到相应的表中
//@Table(name="user")
@Data
public class User {
    @Id
    private int id;

    private String name;

    private int age;

}
